﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.DomainModels;

namespace VOL.Domain.IServices.QualityManagement
{
    /// <summary>
    /// 来料检验
    /// </summary>
    public interface IIncominginspectionService
    {
        /// <summary>
        /// 来料检验新增
        /// </summary>
        /// <param name="incominginspection"></param>
        /// <returns></returns>
        Task<int> AddIncominginspection(Incominginspection incominginspection);
        /// <summary>
        /// 来料检验显示
        /// </summary>
        /// <returns></returns>
        Task<List<Incominginspection>> GetAllIncominginspection(string? incomingNumber, string? incomingName,int pageIndex = 1, int pageSize = 5);
        /// <summary>
        /// 来料检验修改
        /// </summary>
        /// <param name="incominginspection"></param>
        /// <returns></returns>
        Task<int> UpdateIncominginspection(Incominginspection incominginspection);
        /// <summary>
        /// 来料检验删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int> DeleteIncominginspection(int id);
    }
}
